import { WebsiteConfig } from "maishu-chitu-admin/static"
import { contextName } from "./constants"

export let config = {
    loginRedirectURL: "index",
    logoutRedirectURL: "",
    registerRedirectURL: "",
    login: {
        title: "好易权限管理系统",
        showForgetPassword: true,
        showRegister: true,
    },
}

// export default config;

let websiteConfig: WebsiteConfig = {
    requirejs: {
        context: contextName,
    },
    firstPanelWidth: 130,
    secondPanelWidth: 130,
    menuItems: [
        // { name: "概况", path: "#index", icon: "icon-dashboard" },
        // {
        //     name: "微店", icon: "icon-dashboard", children: [
        //         { name: "店铺设置", path: "http://127.0.0.1:2858/shop/?appKey=7bbfa36c-8115-47ad-8d47-9e52b58e7efd#store/setting?resourceId=dda46c2b-f404-4db7-a7ef-a9825398998a" },
        //         { name: "店铺首页", path: shopPath("store/home") },
        //         { name: "会员主页", path: shopPath("store/member") },
        //         { name: "店铺导航", path: shopPath("store/menu") }
        //     ]
        // },
        // {
        //     name: "商品", icon: "icon-dashboard", children: [
        //         { name: "商品列表", path: shopPath("shopping/product-list") },
        //         { name: "商品品牌", path: shopPath("shopping/brand-list") }
        //     ]
        // },
        // {
        //     name: "订单", icon: "icon-dashboard", children: [
        //         { name: "订单列表", path: shopPath("shopping/order-list") }
        //     ]
        // },
        // {
        //     name: "营销", icon: "icon-dashboard", children: [
        //         { name: "促销活动", path: shopPath("shopping/promotion/activities") },
        //         { name: "优惠券", path: shopPath("coupon/coupon-list") },
        //         { name: "优惠码", path: shopPath("coupon/coupon-code-list") }
        //     ]
        // },
        // { name: "会员", path: "#temp", icon: "icon-dashboard" },
        // {
        //     name: "设置", icon: "icon-dashboard", children: [
        //         { name: "运费设置", path: shopPath("freight/solution-list") }
        //     ]
        // },
    ]
}

function shopPath(url: string) {
    let r = `shop/#${url}?container=blank&height=900px`;
    return r;
}

export default websiteConfig;

